package com.comando.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * CodeListT entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "code_list_t", catalog = "qunar")
public class CodeListT implements java.io.Serializable {

	// Fields

	private Integer codeListId;
	private String codeCode;
	private String codeEnum;
	private String codeName;
	private Integer codeSeq;

	// Constructors

	/** default constructor */
	public CodeListT() {
	}

	/** minimal constructor */
	public CodeListT(String codeCode) {
		this.codeCode = codeCode;
	}

	/** full constructor */
	public CodeListT(String codeCode, String codeEnum, String codeName,
			Integer codeSeq) {
		this.codeCode = codeCode;
		this.codeEnum = codeEnum;
		this.codeName = codeName;
		this.codeSeq = codeSeq;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "CODE_LIST_ID", unique = true, nullable = false)
	public Integer getCodeListId() {
		return this.codeListId;
	}

	public void setCodeListId(Integer codeListId) {
		this.codeListId = codeListId;
	}

	@Column(name = "CODE_CODE", nullable = false, length = 50)
	public String getCodeCode() {
		return this.codeCode;
	}

	public void setCodeCode(String codeCode) {
		this.codeCode = codeCode;
	}

	@Column(name = "CODE_ENUM", length = 50)
	public String getCodeEnum() {
		return this.codeEnum;
	}

	public void setCodeEnum(String codeEnum) {
		this.codeEnum = codeEnum;
	}

	@Column(name = "CODE_NAME", length = 50)
	public String getCodeName() {
		return this.codeName;
	}

	public void setCodeName(String codeName) {
		this.codeName = codeName;
	}

	@Column(name = "CODE_SEQ")
	public Integer getCodeSeq() {
		return this.codeSeq;
	}

	public void setCodeSeq(Integer codeSeq) {
		this.codeSeq = codeSeq;
	}

}